﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SampleApp
{
    static class ViewModelLocator
    {
        public static readonly string Page1 = "Page1Key";
        public static readonly string Page2 = "Page2Key";

        public static MvvmCrystalTool.INavigationService Navigator { get; private set; }

        static ViewModelLocator()
        {
            var nav = new MvvmCrystalTool.MvvmNavigationService(App.RootFrame);

            Navigator = nav;

            nav.Register(Page1, "Page1", new ViewModelPage1(Navigator));
            nav.Register(Page2, "Page2", new ViewModelPage2(Navigator));
        }
    }
}
